import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api//blade-system/classfl/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const addage = (params) => {
    return request({
      url: '/api/blade-system/classfl/Insertvage',
      method: 'post',
      data:params
    })
  }

  export const addOrder = (params) => {
    return request({
      url: '/api/blade-system/order/addOrder',
      method: 'post',
      params:{
        order:params
      }
    })
  }

  export const addOrder2 = (params) => {
    return request({
      url: '/api/blade-system/order/addOrder2',
      method: 'post',
      params:{
        ...params
      }
    })
  }

  export const addshopcar = (params) => {
    return request({
      url: '/api/blade-system/shopcar/insetShopcar2',
      method: 'post',
      params: {
        ...params
      }
    })
  }

  export const getShopcar = (params) => {
    return request({
      url: '/api/blade-system/shopcar/getShopcar',
      method: 'get',
      params:{
        userId:params
      }
    })
  }

  export const updateshopcar = (params) => {
    return request({
      url: '/api/blade-system/shopcar/updateshopcar',
      method: 'post',
      params:{
        ...params
      }
    })
  }

  export const delteshopcar = (params) => {
    return request({
      url: '/api/blade-system/shopcar/delteshopcar',
      method: 'post',
      params:{
        ...params
      }
    })
  }

